package edu.sctu.practice.class02.luohui.assign03;

/**
 * Created by asus on 2015/10/8.
 */
public class Rational {
    double a;
    double b;

    public Rational(double a, double b) {
        this.a = a;
        this.b = b;
    }


    public double add(){
        return a+b;

    }
    public double subtract(){
        return a-b;

    }
    public double multiply(){
        return a*b;

    }
    public double devide(){
        return a/b;

    }
}
